package org.jeecg.modules.demo.baseorde.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 订单信息
 * @Author: jeecg-boot
 * @Date: 2022-01-27
 * @Version: V1.0
 */
@Data

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_order_info对象", description = "订单信息")
public class BaseOrderInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 订单编号
     */
    @Excel(name = "订单编号", width = 15)
    @ApiModelProperty(value = "订单编号")
    private String orderCode;
    /**
     * 时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "时间")
    private Date createTime;
    @Excel(name = "商品价格", width = 15)
    @ApiModelProperty(value = "商品价格")
    private BigDecimal totalAmount;//total_amount
    @Excel(name = "折扣", width = 15)
    @ApiModelProperty(value = "折扣")
    private Double discount;
    @Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
    private BigDecimal totalDiscountAmount;//total_discount_amount
    /**
     * 合计
     */
    @Excel(name = "合计", width = 15)
    @ApiModelProperty(value = "合计")
    private BigDecimal realityAmount;
    /**
     * 合计
     */
    @Excel(name = "商品数量", width = 15)
    @ApiModelProperty(value = "商品数量")
    private Integer commodityQty;
    /**
     * 付款方式
     */
    @Excel(name = "付款方式", width = 15)
    @ApiModelProperty(value = "付款方式")
    private String patternPayment;
    /**
     * 订单状态
     */
    @Excel(name = "订单状态", width = 15)
    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    private String storeId;

    //---------------------------------------
    @Excel(name = "订单类型", width = 15)
    @ApiModelProperty(value = "订单类型")
    private String orderType;//order_type

    @Excel(name = "买家留言", width = 15)
    @ApiModelProperty(value = "买家留言")
    private String remark;

    @Excel(name = "会员ID", width = 15)
    @ApiModelProperty(value = "会员ID")
    private String memberId;//member_id
}
